package enterprises

class Provider {

	static constraints = {
		name(blank:false, minSize:3, unique:true)
		primaryProduct(blank:false, minSize:3)
		typeProvider(nullable:false)
	}
	
	static hasMany = [enterprises:Enterprise]
	
	static belongsTo =  [TypeProvider]			
	
	
	String name
	String primaryProduct
	TypeProvider typeProvider
	
	@Override
	public String toString() {
		name;
	}
}
